package com.demo.rabbitmq.config;

public enum DirectExchangeEnum {
    DIRECT_EXCHANGE("direct_exchange", true),
    DIRECT_NOT_DURABLE_EXCHANGE("direct_not_durable_exchange", false);

    private final String exchangeName;
    private final boolean durable;

    DirectExchangeEnum(String exchangeName, boolean durable) {
        this.exchangeName = exchangeName;
        this.durable = durable;
    }

    public String getExchangeName() {
        return exchangeName;
    }

    public boolean isDurable() {
        return durable;
    }
}
